package com.auxgroup.smarthome.enterpriseapi.responsebody;

import com.alibaba.fastjson.JSONObject;

import java.util.List;

/**
 * @Author: laiqiuhua.
 * @Date: 2017/8/18 11:20.
 */
public class AggDataResult extends AbstractErrorBody {
    private AggQuery query;
    private List<AggData> data;

    public static class AggQuery {
        private int start_ts;
        private int end_ts;
        private String attrs;
        private String aggregator;
        private String unit;
        private String did;

        public int getStart_ts() {
            return start_ts;
        }

        public void setStart_ts(int start_ts) {
            this.start_ts = start_ts;
        }

        public int getEnd_ts() {
            return end_ts;
        }

        public void setEnd_ts(int end_ts) {
            this.end_ts = end_ts;
        }

        public String getAttrs() {
            return attrs;
        }

        public void setAttrs(String attrs) {
            this.attrs = attrs;
        }

        public String getAggregator() {
            return aggregator;
        }

        public void setAggregator(String aggregator) {
            this.aggregator = aggregator;
        }

        public String getUnit() {
            return unit;
        }

        public void setUnit(String unit) {
            this.unit = unit;
        }

        public String getDid() {
            return did;
        }

        public void setDid(String did) {
            this.did = did;
        }
    }

    public static class AggData {
        private String datetime;
        private JSONObject attrs;

        public String getDatetime() {
            return datetime;
        }

        public void setDatetime(String datetime) {
            this.datetime = datetime;
        }

        public JSONObject getAttrs() {
            return attrs;
        }

        public void setAttrs(JSONObject attrs) {
            this.attrs = attrs;
        }
    }

    public AggQuery getQuery() {
        return query;
    }

    public void setQuery(AggQuery query) {
        this.query = query;
    }

    public List<AggData> getData() {
        return data;
    }

    public void setData(List<AggData> data) {
        this.data = data;
    }
}
